<!doctype html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
	<meta name="format-detection" content="telephone=no" />
	<title>消息</title>
	<link rel="stylesheet" type="text/css" href="../c/aui.css" />
	<link rel="stylesheet" type="text/css" href="../c/redian.css" />
</head>

<body>
	<script id="sx-list" type="text/x-dot-template">
		{{ for(var i=0,it=it; i < it.length; i++) { }}
		<li class="aui-list-item aui-list-item-middle" tapmode onclick="_u({{= it[i].user.id}})">
			<div class="aui-media-list-item-inner">
				<div class="em">{{= i>=3 ? (i+1) : ''}}</div>
				<div class="aui-list-item-media" id="img">
					<img suxiangw-src="{{= it[i].user.img ? _img(it[i].user.img,100,100) : '../i/touxiang.png' }}" src='../i/touxiang.png' class="aui-img-round">
				</div>
				<div class="aui-list-item-inner aui-ellipsis">
					<div class="aui-ellipsis-1" id="username">
						{{= it[i].user.username}}
					</div>
					<div id="info">关注人数<b>{{= it[i].uid_num}}</b>人
					</div>
				</div>
			</div>
		</li>
		{{ } }}
	</script>
	<div class="aui-card-list">
		<ul class="aui-list aui-media-list" id="sx-view">
			<div id="loadingdi_huifu" style=" margin-top:50% "><img src="../i/footer_progress.png" /></div>
		</ul>
	</div>
</body>
<script type="text/javascript" src="../j/api.js"></script>
<script type="text/javascript">
	var url = 'video/redian_guanzhu';
	apiready = function() {
if(adName){
	_init_ad();
	ad = api.require(adName);
}

		list();
		_shangla(function(ret,err){
			list();
		},1)
	}
	function list(){
		banner();
		_ajax(url,function(ret,err){
			if(ret.length){
				var evalData = doT.template($api.html($api.byId('sx-list')));
			 	$api.html($api.byId('sx-view'), evalData(ret));
				_loadingCloes();
				api.parseTapmode();
				_imageCache();
			}else{
				$('#sx-view').html('<div id="loadingNo" class="meiyoushju" style="padding-top:70%;">没数据啦，多多互动吧 ~ </div>');
			}
		})
	}
</script>

</html>
